var myApp = angular.module("myApp", ['ui.router','ngAnimate']);
myApp.config(function ($stateProvider, $urlRouterProvider) {

     $urlRouterProvider.when("", "/PageTab");

     $stateProvider
        .state("PageTab", {
            url: "/PageTab",
            templateUrl: "view/PageTab.html"
        })
        .state("PageTab.index1", {
            url:"/index1",
            templateUrl: "view/index1.html"
        })
        .state("PageTab.index2", {
            url:"/index2",
            templateUrl: "view/index2.html"
        })
        .state("PageTab.index3", {
            url:"/index3",
			// controller:function($scope){
			// 	$scope.test="tewte";
			// },
			controller:"View3Controller",
            templateUrl: "view/index3.html",
        })
		.state("PageTab.index1.item",{
			url:"/item/:itemid",
			templateUrl:"view/item.html",
			controller:"ItemController"
		})
		;
})
